<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #flower{
            position:absolute;
            /* transition: all 1000ms; */
        }
    </style>
</head>
<body>
    <img src="../img/快乐加倍.png" width="50" height="50" id="flower"  alt="">
    <script>
        let imgobj=document.getElementById('flower');
        document.onmousemove=function(event){
            let x = event.clientX;
            let y = event.clientY;
            flower.style.left = x + 'px';
            flower.style.top = y + 'px';
        }
    </script>
</body>
</html>